//
// Created by shen on 8/8/2024.
//

#ifndef TSAVPLAYER_VIDEORENDER_H
#define TSAVPLAYER_VIDEORENDER_H
#include <ImageDef.h>
#define VIDEO_RENDER_OPENGL             0
#define VIDEO_RENDER_ANWINDOW           1
#define VIDEO_RENDER_3D_VR              2
class VideoRender{
public:
    VideoRender(int type){
        m_RenderType = type;
    }

    virtual ~VideoRender(){}

    virtual void Init(int videoWidth,int videoHeight,int *dstSize)=0;

    virtual void RenderVideoFrame(NativeImage *pImage)=0;

    virtual void UnInit()=0;

    int GetRenderType() {
        return m_RenderType;
    }

public:
    int m_RenderType = VIDEO_RENDER_ANWINDOW;

};
#endif //TSAVPLAYER_VIDEORENDER_H
